/**
 * 基础路由
 * @type { *[] }
 */

const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/layouts/AppSider.vue'),
    name: 'Main',
    redirect: { name: 'MainLayoutIndex' },
    children: [
      {
        path: '/main/layout',
        name: 'MainLayoutIndex',
        component: () => import('@/views/main/layout/Index.vue')
      },
    ]
  },
  {
    path: '/example',
    component: () => import('@/layouts/AppSider.vue'),
    name: 'Example',
    redirect: { name: 'ExampleHelloIndex' },
    children: [
      {
        path: '/example/hello',
        name: 'ExampleHelloIndex',
        component: () => import('@/views/example/hello/Index.vue')
      },
    ]
  },
  {
    path: '/open',
    children: [
      {
        path: '/open/add',
        name: 'UserAddIndex',
        component: () => import('@/views/user/add/Index.vue')
      },
    ]
  },
]

export default constantRouterMap